<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$this->load->view('admin/header');
?>
<h2>相册<?=intval($this->input->get('fid')) ? '修改' : '添加'?><div class="operate"><a href="<?=site_url('admin/album/lists')?>">管理</a></div></h2>
<div class="slider3">
	<form action="<?=site_url('admin/album/op'.(intval($this->input->get('id')) ? '?id='.intval($this->input->get('id')) : ''))?>" method="POST" enctype="multipart/form-data">
	<table cellspacing="0" cellpadding="0" border="0" class="table1">
		<tr>
			<th>类型：</th>
			<td>
				<select name="type">
					<option value="0">请选择</option>
				<?php foreach ($type as $key => $value) { ?>
					<option value="<?=$key?>" <?=isset($row['type'])&&$row['type']==$key ? 'selected' : ''?>><?=$value?></option>
				<?php } ?>
				</select>
			</td>
		</tr>	
		<tr>
			<th><b>*</b> 网页地址：</th>
			<td>
				<textarea name="page_url" style="height:500px; padding:10px;"><?=set_value('page_url', isset($row['page_url']) ? $row['page_url'] : '')?></textarea>
				<?php if(form_error('page_url')) { echo form_error('page_url'); } ?>
				<span class="red">必须以 http:// 开头</span>
			</td>
		</tr>
		<?php if(!empty($row['cover'])) { ?>
		<tr>
			<th><b>*</b> 封面：</th>
			<td>
				<img src="<?=get_thumb($row['cover'])?>"/>
			</td>
		</tr>
		<?php } ?>
		<tr>
			<th></th>
			<td><input type="submit" name="submit" value="提 交" class="but2"/></td>
		</tr>
	</table>
	</form>
</div>

<?php $this->load->view('admin/footer');?>